package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.ProductSkuMapper;
import com.qf.pojo.ProductSku;
import com.qf.service.ProductSkuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 87380
 * @date 2021/12/3
 */
@Service
public class ProductSkuServiceImpl implements ProductSkuService {

    @Resource
    private ProductSkuMapper productSkuMapper;

    @Override
    public ProductSku skuById(Integer id) {
        QueryWrapper<ProductSku> wrapper = new QueryWrapper<>();
        wrapper.eq("product_id",id);

        return productSkuMapper.selectOne(wrapper);
    }
}
